/**
 * www.mbaobao.com Inc.
 * Copyright (c) 2013 All Rights Reserved.
 */
package top.rushpeak.edu03.core.mq;

import java.util.Map;

import org.apache.log4j.Logger;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;


/**
 *                       
 * @Filename SecondHandMessageListener.java
 *
 * @Description 
 *
 * @Version 1.0
 *
 * @Author fred
 *
 * @Email lingmao@mbaobao.com
 *       
 * @History
 *<li>Author: lingmao</li>
 *<li>Date: 2014-6-30</li>
 *<li>Version: b1.0</li>
 *<li>Content: create</li>
 *
 */
public abstract class HandMessageListener implements ApplicationContextAware {
	
	protected static final Logger	LOG	= Logger.getLogger(HandMessageListener.class);
	
	public ApplicationContext		springContext;

	
	public abstract EventEnum[] getActionEnum();
	
	public abstract void onReceiveMessage(Map<String, String> data);
	
	public abstract <T> void onReceiveMessage(MessageContent<T> msg);
	
	@Override
	public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
		this.springContext = applicationContext;
	}
}
